<template>
  <div>
    <div class="tishi">
      <i :class="['iconfont',$store.state.toast.icon]"></i>
      {{ $store.state.toast.tishiVal }}
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
};
</script>
 
<style lang = "less" scoped>
@import "@/assets/base.less";
body {
  background-color: #f5f5f5;

  .tishi {
    box-sizing: border-box;
    i {
      margin-right: 3px;
    }
    height: 50px;
    padding: 0 30px;
    /* width: 300px; */
    background-color: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    right: 50%;
    margin-top: 20px;
    transform: translateX(50%);
    border-radius: 10px;
    text-align: center;
    line-height: 50px;
    color: #f5f5f5;
  }
}
</style>